package com.itheima.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author xiangjun.deng
 * email 17670934918dxj@sina.com
 * @date 2021/9/15 9:41
 * @desc
 */
@Data
public class RouterInfo {
    int id;
    private String billdate;
    private String content;

    public String getBilldate() {
        return billdate;
    }

    public void setBilldate(Date billdate) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String format = sdf.format(billdate);
        this.billdate = format;
    }
}
